import request from '@/utils/request'

// 创建自主创新产品认定
export function addInnovate(data?: any) {
  return request({
    url: '/project/indep-innovate-product-confirm/create',
    method: 'POST',
    data,
  })
}
// 获得自主创新产品认定分页
export function getInnovateList(params?: any) {
  return request({
    url: '/project/indep-innovate-product-confirm/page',
    method: 'GET',
    params,
  })
}

// 获得自主创新产品认定
export function getInnovateInfo(params?: any) {
  return request({
    url: '/project/indep-innovate-product-confirm/get',
    method: 'GET',
    params,
  })
}

// 删除自主创新产品认定
export const deleteInnovate = (id: number) => {
  return request({
    url: `/project/indep-innovate-product-confirm/delete?id=${id}`,
    method: 'DELETE',
  })
}
// 更新自主创新产品认定
export const updateInnovate = (data: any) => {
  return request({
    url: '/project/indep-innovate-product-confirm/update',
    method: 'PUT',
    data,
  })
}

// 导出自主创新产品认定 Excel
export function getInnovateExport(params: any) {
  return request({
    url: '/project/indep-innovate-product-confirm/export-excel',
    method: 'GET',
    responseType: 'blob',
    params,
  })
}